Java: How to store Vector<String[]> in XML (or save in any other way)
Posted
by hatboysam
on Stack Overflow
See other posts from Stack Overflow
or by hatboysam
Published on 2010-04-26T23:17:40Z
Indexed on
2010/04/26
23:23 UTC
Read the original article
Hit count: 148
Basically I have a proof-of-concept application that is a digital recipe book. Each Recipe is an object and each object has, among other fields, a Vector containing arrays. The Vector is the list of all ingredients in the Recipe while each ingredient has an array showing the name of the ingredient, the amount, and the unit for that amount. I want to save each Recipe to XML so that they can be accessed by the user. How can I store a Vector of String arrays in XML or any other sort of file so that it can later be recalled and accessed?
© Stack Overflow or respective owner